package cn.tedu.client.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.util.Date;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@TableName("user")
public class Client {

    @TableId(type = IdType.AUTO)
    Long id;

    @TableField("user_name")
    String username;

    String password;

    @TableField("phone_num")
    String phoneNum;

    @TableField("user_email")
    String userEmail;

    @TableField("user_photo")
    String userPhoto;

    @TableField("user_level")
    Byte userLevel;

    @TableField("wallet_id")
    Long walletId;

    @TableField("user_profile")
    String userProfile;

    @TableField("create_time")
    Date createTime;

    @TableField("update_time")
    Date updateTime;

}
